package com.troll.wanandroid.model

import com.chad.library.adapter.base.entity.node.BaseExpandNode
import com.chad.library.adapter.base.entity.node.BaseNode
import com.troll.base.EMPTY

/**
 *
 * @Author:   TangPeng
 * @Time:     6/10/21
 * @Remark:
 */


class SystemKnowledge : BaseExpandNode() {

    var courseId: String = EMPTY
    var id: String = EMPTY
    var name: String = EMPTY
    var order: String = EMPTY
    var parentChapterId: String = EMPTY
    var userControlSetTop: Boolean = false
    var children: MutableList<SystemKnowledgeTag>? = null

    override val childNode: MutableList<BaseNode>?
        get() = children as MutableList<BaseNode>
}

class SystemKnowledgeTag : BaseNode() {
    var courseId: String = EMPTY
    var id: String = EMPTY
    var name: String = EMPTY
    var order: String = EMPTY
    var parentChapterId: String = EMPTY

    override val childNode: MutableList<BaseNode>? = null

}
